package com.ruoyi.salary.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.salary.mapper.HrSalaryAdjustmentMapper;
import com.ruoyi.salary.domain.HrSalaryAdjustment;
import com.ruoyi.salary.service.IHrSalaryAdjustmentService;

/**
 * 薪酬调整Service业务层处理
 * 
 * @author gy
 * @date 2025-05-21
 */
@Service
public class HrSalaryAdjustmentServiceImpl implements IHrSalaryAdjustmentService 
{
    @Autowired
    private HrSalaryAdjustmentMapper hrSalaryAdjustmentMapper;

    /**
     * 查询薪酬调整
     * 
     * @param id 薪酬调整主键
     * @return 薪酬调整
     */
    @Override
    public HrSalaryAdjustment selectHrSalaryAdjustmentById(Long id)
    {
        return hrSalaryAdjustmentMapper.selectHrSalaryAdjustmentById(id);
    }

    /**
     * 查询薪酬调整列表
     * 
     * @param hrSalaryAdjustment 薪酬调整
     * @return 薪酬调整
     */
    @Override
    public List<HrSalaryAdjustment> selectHrSalaryAdjustmentList(HrSalaryAdjustment hrSalaryAdjustment)
    {
        return hrSalaryAdjustmentMapper.selectHrSalaryAdjustmentList(hrSalaryAdjustment);
    }

    /**
     * 新增薪酬调整
     * 
     * @param hrSalaryAdjustment 薪酬调整
     * @return 结果
     */
    @Override
    public int insertHrSalaryAdjustment(HrSalaryAdjustment hrSalaryAdjustment)
    {
        return hrSalaryAdjustmentMapper.insertHrSalaryAdjustment(hrSalaryAdjustment);
    }

    /**
     * 修改薪酬调整
     * 
     * @param hrSalaryAdjustment 薪酬调整
     * @return 结果
     */
    @Override
    public int updateHrSalaryAdjustment(HrSalaryAdjustment hrSalaryAdjustment)
    {
        return hrSalaryAdjustmentMapper.updateHrSalaryAdjustment(hrSalaryAdjustment);
    }

    /**
     * 批量删除薪酬调整
     * 
     * @param ids 需要删除的薪酬调整主键
     * @return 结果
     */
    @Override
    public int deleteHrSalaryAdjustmentByIds(Long[] ids)
    {
        return hrSalaryAdjustmentMapper.deleteHrSalaryAdjustmentByIds(ids);
    }

    /**
     * 删除薪酬调整信息
     * 
     * @param id 薪酬调整主键
     * @return 结果
     */
    @Override
    public int deleteHrSalaryAdjustmentById(Long id)
    {
        return hrSalaryAdjustmentMapper.deleteHrSalaryAdjustmentById(id);
    }
}
